package com.floreantpos.model;

import com.floreantpos.model.base.BaseUserPermission;

public class UserPermission extends BaseUserPermission {

  private static final long serialVersionUID = 1L;

  /*[CONSTRUCTOR MARKER BEGIN]*/
  public UserPermission() {
    super();
  }

  /**
   * Constructor for primary key
   */
  public UserPermission(java.lang.String name) {
    super(name);
  }

  /*[CONSTRUCTOR MARKER END]*/
  @Override
  public String toString() {
    return getName();
  }

  public final static UserPermission CREATE_NEW_TICKET = new UserPermission("Incluir Pedido");
  public final static UserPermission VIEW_ALL_OPEN_TICKET = new UserPermission("Ver Todos os Pedidos em Aberto");
  public final static UserPermission EDIT_TICKET = new UserPermission("Alterar Pedido");
  public final static UserPermission VOID_TICKET = new UserPermission("Cancelar Pedido");
  public final static UserPermission PERFORM_ADMINISTRATIVE_TASK = new UserPermission("Acesso aos Recursos de Administração");
  public final static UserPermission PERFORM_MANAGER_TASK = new UserPermission("Acesso as Atividades Gerenciais");
  public final static UserPermission VIEW_BACK_OFFICE = new UserPermission("Acesso aos Recursos de Retaguarda");
  public final static UserPermission SPLIT_TICKET = new UserPermission("Dividir Pedido");
  public final static UserPermission SETTLE_TICKET = new UserPermission("Fechar Pedido");
  public final static UserPermission REOPEN_TICKET = new UserPermission("Reabrir Pedido");
  public final static UserPermission DELIVERY = new UserPermission("Entrega");
  public final static UserPermission TAKE_OUT = new UserPermission("Retira");
  public final static UserPermission VIEW_EXPLORERS = new UserPermission("Acesso aos Cadastros");
  public final static UserPermission VIEW_REPORTS = new UserPermission("Acesso aos Relatórios");

  public final static UserPermission[] permissions = new UserPermission[]{VIEW_ALL_OPEN_TICKET, CREATE_NEW_TICKET, EDIT_TICKET, VOID_TICKET, PERFORM_MANAGER_TASK,
    VIEW_BACK_OFFICE, SPLIT_TICKET, SETTLE_TICKET, REOPEN_TICKET, DELIVERY,
    TAKE_OUT, PERFORM_ADMINISTRATIVE_TASK, VIEW_EXPLORERS, VIEW_REPORTS};
}
